package com.hongtech.modules.app.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * 用户
 *
 * @author lch 123456789@qq.com
 * @since 1.0.0 2023-09-16
 */
@Data
@ApiModel(value = "用户")
public class UserDTO implements Serializable {

    private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "id")
	private Long userId;

	@ApiModelProperty(value = "用户名")
	private String username;

	@ApiModelProperty(value = "手机号")
	private String mobile;

	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "头像")
	private String headPic;

	@ApiModelProperty(value = "性别 0 未知 1男 2 女")
	private Integer gender;

	@ApiModelProperty(value = "简介")
	private String introduction;

	@ApiModelProperty(value = "生日")
	@DateTimeFormat(pattern = "yyyy-MM-dd")
	@JsonFormat(pattern = "yyyy-MM-dd", locale = "zh", timezone = "GMT+8")
	private Date birthday;

	@ApiModelProperty(value = "认证状态 0 未认证 1 认证中 2 认证失败 3认证成功")
	private Integer authStatus;

	@ApiModelProperty(value = "更新时间")
	private Date updateTime;

	@ApiModelProperty(value = "创建时间")
	private Date createTime;

}